import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import home from './modules/home'

import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState({
    storage: window.sessionStorage
  })],
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    home
  }
})
